package com.cmc.cloud.cmclink.doc.vo.blnorulepbcodevo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 接货地提单号两位码 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BlnoRulePbcodeBaseVO {

    @Schema(description = "港口类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "{BlnoRulePbcodeBaseVO.portType.NotBlank}")
    @Length(max = 50, message = "{BlnoRulePbcodeBaseVO.portType.Length}")
    private String portType;

    @Schema(description = "接货地代码;", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{BlnoRulePbcodeBaseVO.porCode.NotBlank}")
    @Length(max = 5, message = "{BlnoRulePbcodeBaseVO.porCode.Length}")
    private String porCode;

    @Schema(description = "接货地提单号两位码;", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{BlnoRulePbcodeBaseVO.porBlnoCode.NotBlank}")
    @Length(max = 2, message = "{BlnoRulePbcodeBaseVO.porBlnoCode.Length}")
    private String porBlnoCode;

    @Schema(description = "是否启用;", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{BlnoRulePbcodeBaseVO.enable.NotNull}")
    private Boolean enable;

}
